/*
 * @Author: your name
 * @Date: 2020-08-04 13:53:29
 * @LastEditTime: 2020-09-09 14:27:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \PipeOneMap_WebClient\src\app\shared\shared.module.ts
 */


import { RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { CommonModule, registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { G2BarComponent } from './component/g2-bar/g2-bar.component';
import { G2LineComponent } from './component/g2-line/g2-line.component';
import { G2PieComponent } from './component/g2-pie/g2-pie.component';
import { G2StiffComponent } from './component/g2-stiff/g2-stiff.component';
import { NgxG2Directive } from './graphics/ngxG2.directive';
import { G2StackComponent } from './component/g2-stack/g2-stack.component';
import { ScaleChartComponent } from './component/scale-chart/scale-chart.component';
import { G2TwolevelpieComponent } from './component/g2-twolevelpie/g2-twolevelpie.component';
import { G2GrouphistogramComponent } from './component/g2-grouphistogram/g2-grouphistogram.component';

// ng 核心模块
const ngModules = [
  CommonModule,
  RouterModule
];
// 业务公共组件
const selfcomms = [
  G2BarComponent,
  G2LineComponent,
  G2PieComponent,
  G2StiffComponent,
  G2StackComponent,
  ScaleChartComponent,
  G2TwolevelpieComponent,
  G2GrouphistogramComponent
 ];
const directive = [NgxG2Directive];
@NgModule({
  imports: [
    ...ngModules,
  ],
  declarations: [
    ...selfcomms,
    ...directive
  ],
  exports: [
    ...selfcomms,
    ...directive
  ],
  providers: [
  ]
})
export class G2SharedModule { }
